package com.xqboss.apps.dto.synthesis;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "合成活动-方案配置-调整库存", description = "出入参数")
public class SynthesisPlanStatusDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "活动id")
    @NotNull(message = "活动id不可为空")
    private Long synthesisId;

    @ApiModelProperty(value = "方案id")
    @NotNull(message = "方案id不可为空")
    private Long planId;

    @ApiModelProperty(value = "状态[1:展示;2:停止;3:隐藏]")
    @NotNull(message = "状态不可为空")
    @Min(value = 1, message = "状态不合法")
    @Max(value = 3, message = "状态不合法")
    private Integer status;
}
